package org.jeecg.modules.pacs.handle;

public class Request<T> {
    private int errorCode;
    private boolean  success;
    private String errorMsg;
    private T content;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public T getContent() {
        return content;
    }

    public void setContent(T content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Request{" + "errorCode=" + errorCode + ", success=" + success + ", errorMsg='" + errorMsg + '\'' + ", content=" + content + '}';
    }
}
